package de.dnb.gnd.utils;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;

public class Mailbox {

	public class Adress {

		public Adress(String isil, String code, String person) {
			super();
			this.isil = isil;

			this.code = code;
			this.person = person;
		}

		public final String isil;

		/**
		 * Etwas wie FE-P.
		 */
		public final String code;

		public final String person;

	}

	private Set<Adress> recipients = new LinkedHashSet<>();

	private Set<Adress> senders = new LinkedHashSet<>();

	private String text;

	public static void main(String[] args) throws ParseException {
		SimpleDateFormat formatIn = new SimpleDateFormat("yyyy-MM-dd");
		Date date = formatIn.parse("2015-03-16");
		DateFormat dateFormat =
			DateFormat.getDateInstance(DateFormat.LONG);
		System.out.println(dateFormat.format(date));
		Date date1 = new Date();
		Set<Date> dates = new TreeSet<>();
		dates.add(date1);
		dates.add(date);
		System.out.println(dates);
	}

}
